// components/CloudSwiperRecordItem/index.js
let app = getApp()
Component({
  options: {
    addGlobalClass: true,
  },
  properties: {
    item:{
      type:Object
    }
  },
  data: {
    transStateMap: {
      1: { text: "交易中", color: "#F79407" },
      2: { text: "交易成功", color: "#23B714" },
      3: { text: "交易失败", color: "#CC290E" },
    },
    staticImgUrl: app.globalData.staticImgUrl,
    outCardNum4:"",
    inCardNum4:""
  },
  attached() {
    this.setData({
      outCardNum4: this.properties.item.pd_bank_card_num.substring(this.properties.item.pd_bank_card_num.length - 4),
      inCardNum4: this.properties.item.pd_card_num.substring(this.properties.item.pd_card_num.length - 4),
    })
  },
  methods: {

  }
})
